﻿#region Using region
using System;
using System.Collections.Generic;
using System.Collections;
using System.Threading;
using System.Collections.Specialized;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Storage;
using Microsoft.Xna.Framework.GamerServices;


using JigLibX.Physics;
using JigLibX.Collision;
using JigLibX.Geometry;
using JigLibX.Math;
using JigLibX.Utils;
using sqengine.PhysicObjects;
using JigLibX.Vehicles;
using System.Diagnostics;



using sqengine.Engine;
using sqengine.Components;
using sqengine.Engine.Common;


using SqEngine.Components;
using SqEngine.Audio;
using SqEngine;


using PK3Model;
#endregion

namespace sqengine
{

    partial class sqengine : Microsoft.Xna.Framework.Game
    {
        private SqWebBrowserComponent cmp_webbrowser;
        private WebBrowserPool wb_pool;

        public WebBrowserPool WebBrowserQueue { get { return wb_pool; } }
        public SqWebBrowserComponent WebBrowser { get { return cmp_webbrowser; } }


        public void WebBrowserNavigate(string url, bool visible)
        {
            cmp_webbrowser.Navigate(url);
            cmp_webbrowser.Visible = visible;
            cmp_webbrowser.IsVisible = true;

        }

        public void WebBrowserNavigate(string url)
        {
            WebBrowserNavigate(url, true);

        }



    }
}